Tim Janik [Wed, 13 Feb 2002 05:48:56 +0000 (05:48 +0000)]
partly revert my recent expanding change to not expand the table if all
Wed Feb 13 06:42:37 2002 Tim Janik <timj@gtk.org>
* gtk/gtktable.c (gtk_table_size_allocate_pass1): partly revert
my recent expanding change to not expand the table if all children
have not epxand behaviour. this fixes palette views which often
use homogeneous non-expanding tables.
Matthias Clasen [Tue, 12 Feb 2002 23:28:05 +0000 (23:28 +0000)]
Add a (#ifdef 0'ed) test provoking a segfault in TIFFReadDirectory().
* test-images.h (tiff1_test_3), test-loaders.c (main): Add a
(#ifdef 0'ed) test provoking a segfault in TIFFReadDirectory().
* io-ico.c (DecodeHeader): Check that pixbuf could be allocated.
* test-images.h (ico_test_2), test-loaders.c (main): Test the
previous change.
* io-wbmp.c (gdk_pixbuf__wbmp_image_load_increment): Don't write
beyond the end of buffer if width % 8 != 0.
* io-tga.c (try_preload): Enforce that ctx->hdr->type is one of
the supported types, otherwise parse_data_for_row () will not make
any progress, leading to an infinite loop.
Kristian Rietveld [Tue, 12 Feb 2002 17:48:02 +0000 (17:48 +0000)]
emit row_deleted before we start unreffing the nodes ourselves
Tue Feb 12 14:27:41 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted): emit
row_deleted before we start unreffing the nodes ourselves
(gtk_tree_model_sort_increment_stamp): always increment the stamp,
and not only if the stamp equals 0 (pointed out by Darin Adler)
* gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): we want
to continue the while loop and not the nested for loop.
Tim Janik [Tue, 12 Feb 2002 01:39:28 +0000 (01:39 +0000)]
always spread out the extra space allocated for the homogeneous case, as
Tue Feb 12 02:19:49 2002 Tim Janik <timj@gtk.org>
* gtk/gtktable.c (gtk_table_size_allocate_pass1): always spread out
the extra space allocated for the homogeneous case, as we don't
properly deal with readjusting table allocation within it. (for this
purpose, a GtkAlignment can be used as table parent).
Darin Adler [Tue, 12 Feb 2002 01:00:22 +0000 (01:00 +0000)]
Consider reordering the row even when there's no sort column, if there's a
* gtk/gtktreemodelsort.c: (gtk_tree_model_sort_row_changed):
Consider reordering the row even when there's no sort column, if
there's a default sort function.
(gtk_tree_model_sort_rows_reordered): Use symbolic constants.
(gtk_tree_model_sort_level_find_insert): Add code to handle the
case where there is no sort column, but a default sort function.
(gtk_tree_model_sort_insert_value): Add code to handle the case
where there is no sort column an no default sort function.
(gtk_tree_model_sort_set_model): Use symbolic constant.
(gtk_tree_model_sort_reset_default_sort_func): Use symbolic constant.
Kjartan Maraas [Tue, 12 Feb 2002 00:53:11 +0000 (00:53 +0000)]
Updated Norwegian (bokmål) translation.
2002-02-12 Kjartan Maraas <kmaraas@gnome.org>
* no.po: Updated Norwegian (bokmål) translation.
Duarte Loreto [Mon, 11 Feb 2002 23:52:37 +0000 (23:52 +0000)]
Updated Portuguese translation.
2002-02-11 Duarte Loreto <happyguy_pt@hotmail.com>
* pt.po: Updated Portuguese translation.
Søren Sandmann Pedersen [Mon, 11 Feb 2002 22:21:19 +0000 (22:21 +0000)]
Fix ChangeLog
Sven Neumann [Mon, 11 Feb 2002 21:17:11 +0000 (21:17 +0000)]
converted the "Delete File" dialog to GtkMessageDialog. Marked missing
2002-02-11 Sven Neumann <sven@gimp.org>
* gtk/gtkfilesel.c: converted the "Delete File" dialog to
GtkMessageDialog. Marked missing strings for translation.
Soeren Sandmann [Mon, 11 Feb 2002 21:10:33 +0000 (21:10 +0000)]
Opaque resizing + prelighting for paned widget. move reszing logic to
Mon Feb 11 22:03:15 2002 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtkpaned.[ch]: Opaque resizing + prelighting for paned widget.
* gtk/gtkvpaned.c, gtk/gtkvpaned.h: move reszing logic to gtkpaned.c
Kristian Rietveld [Mon, 11 Feb 2002 20:46:49 +0000 (20:46 +0000)]
Implements DnD scrolling and fixes #71139
Mon Feb 11 21:42:17 2002 Kristian Rietveld <kris@gtk.org>
Implements DnD scrolling and fixes #71139
* gtk/gtktreeview.c (gtk_tree_view_vertical_autoscroll): new function,
(scroll_row_timeout): new function,
(gtk_tree_view_drag_motion): create scroll_timeout, so
scroll_row_timeout gets called
Owen Taylor [Mon, 11 Feb 2002 19:36:12 +0000 (19:36 +0000)]
Fix handing of overall alpha.
Mon Feb 11 14:31:53 2002 Owen Taylor <otaylor@redhat.com>
* pixops/pixops.c (bilinear_make_weights): Fix handing of
overall alpha.
Kristian Rietveld [Mon, 11 Feb 2002 16:58:23 +0000 (16:58 +0000)]
set upper member of hadjustment correct, so the hscrollbars of lists
Mon Feb 11 17:54:46 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_size_allocate): set upper
member of hadjustment correct, so the hscrollbars of lists smaller
than 1 page (in width) are somewhat saner
jacob berkman [Mon, 11 Feb 2002 16:34:27 +0000 (16:34 +0000)]
fix signature to match implementation
2002-02-11 jacob berkman <jacob@ximian.com>
* gdk/gdkwindow.h (gdk_get_default_root_window): fix signature to
match implementation
Kristian Rietveld [Mon, 11 Feb 2002 15:48:22 +0000 (15:48 +0000)]
set value of func to NULL during initialization (we don't use func in the
Mon Feb 11 16:48:34 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtkliststore.c (gtk_list_store_set_valist): set value of
func to NULL during initialization (we don't use func in the
!SORTED case, so we just silent the compiler here) (#71029)
Kristian Rietveld [Mon, 11 Feb 2002 15:37:53 +0000 (15:37 +0000)]
install presize handler, so the validate_rows_handler will always be run
Mon Feb 11 16:40:44 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_set_model): install presize
handler, so the validate_rows_handler will always be run (#70997)
Kristian Rietveld [Mon, 11 Feb 2002 15:06:59 +0000 (15:06 +0000)]
Get the damn fix right, see my latest ChangeLog entry.
Kristian Rietveld [Sun, 10 Feb 2002 23:03:05 +0000 (23:03 +0000)]
Add bug number
Kristian Rietveld [Sun, 10 Feb 2002 22:53:20 +0000 (22:53 +0000)]
increase value of new_location by one if cmp_a > 0 and we hit the end of
Sun Feb 10 22:20:46 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtkliststore.c (gtk_list_store_sort_iter_changed): increase
value of new_location by one if cmp_a > 0 and we hit the end of
the list and pass NULL instead of a 'NULL-iter' with
_rows_reordered
Matthias Clasen [Sun, 10 Feb 2002 21:06:15 +0000 (21:06 +0000)]
Enable some tests which should work now.
* test-loaders.c (main): Enable some tests which should work
now.
* io-wbmp.c (gdk_pixbuf__wbmp_image_load_increment): Detect
invalid image dimensions and insufficient memory.
* io-tga.c (try_preload): Detect invalid image dimensions.
(gdk_pixbuf__tga_stop_load): Don't try to unref NULL pointers.
* io-ico.c (DecodeHeader): Detect some invalid headers and
don't segfault.
Owen Taylor [Sun, 10 Feb 2002 17:46:08 +0000 (17:46 +0000)]
Add three Ethiopic input methods from Daniel Yacob.
Sun Feb 10 12:32:44 2002 Owen Taylor <otaylor@redhat.com>
* modules/input/Makefile.am modules/input/{imam-et.c, imti-er.c,
imti-et.c} po/POTFILES.in: Add three Ethiopic input methods from
Daniel Yacob.
Anders Carlsson [Sun, 10 Feb 2002 14:33:06 +0000 (14:33 +0000)]
Set finalize handler; (gtk_calendar_finalize): Rename gtk_calendar_destroy
2002-02-10 Anders Carlsson <andersca@gnu.org>
* gtk/gtkcalendar.c (gtk_calendar_class_init): Set finalize handler;
(gtk_calendar_finalize): Rename gtk_calendar_destroy to gtk_calendar_finalize
since ::destroy can be called multiple times, resulting in double-freeing memory.
Hans Breuer [Sun, 10 Feb 2002 13:18:51 +0000 (13:18 +0000)]
don't reduce the scroll rect size by the scroll amount
2002-02-10 Hans Breuer <hans@breuer.org>
* gdk/win32/gdkgeometry-win32.c : don't reduce the scroll
rect size by the scroll amount
* gdk/win32/gdkwindow-win32.c
* gdk/win32/gdkselection-win32.c : added some casts to
make it compile with msvc's strict type checking
* gtk/fnmatch.c : #include <ctype.h> again for tolower
prototype. The fnmatch() code assumes to be in the crt
locale though it is feeded by utf8 strings from gtkfilesel.c
* gtk/gtkfilesel.c : let ->cmpl_text be a strdup managed by
_CompletionDir instead of referencing already freed memory
* gtk/gtktooltips.c (gtk_tooltips_init) : fix typo to
gtk_rc_parse_string (theDefaultTooltipColor) once as it
was intended
* tests/makefile.msc : added more tests
* tests/testgtk.c (create_list) : don't try to load gtkenums.h
from the current directory use ../gtk/gtkenums.h instead
Kjartan Maraas [Sun, 10 Feb 2002 11:11:01 +0000 (11:11 +0000)]
Fix a double «The» typo in a string.
2002-02-10 Kjartan Maraas <kmaraas@gnome.org>
* gtk/gtksizegroup.c: Fix a double «The» typo in a string.
Kjartan Maraas [Sun, 10 Feb 2002 10:36:09 +0000 (10:36 +0000)]
Updated Norwegian (bokmål) translation.
2002-02-10 Kjartan Maraas <kmaraas@gnome.org>
* no.po: Updated Norwegian (bokmål) translation.
Ole Laursen [Sat, 9 Feb 2002 22:24:23 +0000 (22:24 +0000)]
Updated Danish translation.
2002-02-09 Ole Laursen <olau@hardworking.dk>
* da.po: Updated Danish translation.
Matthias Clasen [Sat, 9 Feb 2002 22:12:04 +0000 (22:12 +0000)]
Avoid segfault for selectable tab labels (even without a segfault, they
* gtk/gtknotebook.c (gtk_notebook_set_focus_child): Avoid segfault
for selectable tab labels (even without a segfault, they make the
notebook almost unusable, though). (#69985)
* gtk/gtkmenuitem.c (gtk_menu_item_set_accel_path): Silently do
nothing if the parent is not a menu. (#66492)
* gtk/gtkitemfactory.c (gtk_item_factory_from_widget,
gtk_item_factory_path_from_widget): Try fetching the return value
from menu_item->submenu as a fallback. (#69020)
Kristian Rietveld [Sat, 9 Feb 2002 21:56:30 +0000 (21:56 +0000)]
convert the iter to a child iter again, after doing _iter_children. It's
Sat Feb 9 22:57:43 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_build_level): convert
the iter to a child iter again, after doing _iter_children. It's
possible that _iter_children added some rows and updated the stamp.
Pauli Virtanen [Sat, 9 Feb 2002 21:55:40 +0000 (21:55 +0000)]
Updated Finnish translation and converted it to UTF-8.
2002-02-09 Pauli Virtanen <ptvirtan@cc.hut.fi>
* fi.po: Updated Finnish translation and converted it to UTF-8.
Daniel Elstner [Sat, 9 Feb 2002 20:44:12 +0000 (20:44 +0000)]
Use == rather than = in sanity checks. Ouch!
2002-02-09 Daniel Elstner <daniel.elstner@gmx.net>
* gtk/gtktextchild.c: Use == rather than = in sanity checks. Ouch!
Daniel Elstner [Sat, 9 Feb 2002 19:14:54 +0000 (19:14 +0000)]
Add missing curled braces so that it doesn't always return. Also indent
2002-02-09 Daniel Elstner <daniel.elstner@gmx.net>
* gtk/gtktextchild.c (CHECK_IN_BUFFER_RETURN): Add missing curled braces so that it doesn't always return. Also indent both CHECK_IN_BUFFER* macros properly, and make use of G_STMT_START/G_STMT_END.
Owen Taylor [Sat, 9 Feb 2002 18:37:40 +0000 (18:37 +0000)]
Add prototype for _gtk_binding_reset_parsed().
Sat Feb 9 13:27:14 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkbindings.h: Add prototype for
_gtk_binding_reset_parsed().
Owen Taylor [Sat, 9 Feb 2002 18:22:12 +0000 (18:22 +0000)]
add missed changelog entry
Owen Taylor [Sat, 9 Feb 2002 18:20:45 +0000 (18:20 +0000)]
Add tools and images used for creating the check/radio button images in
Sat Feb 9 13:19:20 2002 Owen Taylor <otaylor@redhat.com>
* configure.in gtk/Makefile.am gtk/theme-bits/*: Add
tools and images used for creating the check/radio
button images in the default theme.
Gediminas Paulauskas [Sat, 9 Feb 2002 18:17:56 +0000 (18:17 +0000)]
update a bit
Soeren Sandmann [Sat, 9 Feb 2002 13:05:02 +0000 (13:05 +0000)]
Keyboard navigation for GtkPaned F6: cycle between panes. F8: focus handle
Sat Feb 9 13:58:41 2002 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtkpaned.[ch]: Keyboard navigation for GtkPaned
F6: cycle between panes.
F8: focus handle (#53584)
* tests/testgtk.c: Add test cases for GtkPaned keyboard
navigation.
Owen Taylor [Sat, 9 Feb 2002 05:24:25 +0000 (05:24 +0000)]
XCopyArea with subwindow_mode = IncludeInferiors. (#70999)
Sat Feb 9 00:16:31 2002 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkimage-x11.c (_gdk_x11_copy_to_image):
XCopyArea with subwindow_mode = IncludeInferiors.
(#70999)
* demos/testpixbuf-save.c (configure_cb): Fix a minor
memory management problem.
Owen Taylor [Sat, 9 Feb 2002 04:14:53 +0000 (04:14 +0000)]
Force all weight arrays to sum exactly to 65535. (Fixes #70971, reported
Fri Feb 8 23:11:15 2002 Owen Taylor <otaylor@redhat.com>
* pixops/pixops.c: Force all weight arrays to sum exactly
to 65535. (Fixes #70971, reported by Federico Mena Quintero)
* Makefile.am (libgdk_pixbuf_1_3_la_DEPENDENCIES): Add
libpixops.la.
Owen Taylor [Sat, 9 Feb 2002 01:29:14 +0000 (01:29 +0000)]
Fix problem with string-valued parameters (#70012, Johan Dahlin.)
Fri Feb 8 20:24:58 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkbindings.c (binding_compose_params): Fix problem
with string-valued parameters (#70012, Johan Dahlin.)
* gtk/gtkentry.c (gtk_entry_delete_whitespace): Fix
white space deletion.
Jonathan Blandford [Sat, 9 Feb 2002 01:28:00 +0000 (01:28 +0000)]
fix evil ref bug where the wrong row and a deleted row was unreffed. Found
Fri Feb 8 21:25:56 2002 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted): fix
evil ref bug where the wrong row and a deleted row was unreffed.
Found by Darin Adler <darin@bentspoon.com>
Owen Taylor [Sat, 9 Feb 2002 00:19:29 +0000 (00:19 +0000)]
Add a function to delete all bindings add by gtk_binding_parse_binding()
Fri Feb 8 18:46:13 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkbindings.[ch] (_gtk_binding_reset_parsed): Add
a function to delete all bindings add by
gtk_binding_parse_binding() when rereading RC files.
* gtk/gtkrc.c (gtk_rc_reparse_all_for_settings): Reset
binding set content as well as RC content.
* gtk/gtkbindings.c (binding_compose_params): Fix
various GValue handling problems.
* gtk/gtkentry.c (gtk_entry_class_init): Remove bindings
for C-b, C-f, M-b, M-f, C-a, C-e, C-w, C-y, M-space, C-u,
C-k, M-\, M-d, C-d.
* gtk/gtktextview.c (gtk_text_view_class_init): Remove
same bindings as GtkEntry, plus C-n, C-p, C-space
* gtk/gtkrc.key.default gtk/gtkrc.key.emacs gtk/Makefile.am:
Add Emacs and Default key themes.
Darin Adler [Sat, 9 Feb 2002 00:12:30 +0000 (00:12 +0000)]
Remove a tiny bit more dead code.
* gtk/gtktreeview.c: (gtk_tree_view_map_expanded_rows_helper):
Remove a tiny bit more dead code.
Darin Adler [Fri, 8 Feb 2002 23:26:29 +0000 (23:26 +0000)]
Fix stale pointer bug.
* gtk/gtktreeview.c: (gtk_tree_view_map_expanded_rows_helper):
Fix stale pointer bug.
Federico Mena Quintero [Fri, 8 Feb 2002 19:52:23 +0000 (19:52 +0000)]
Fix comment; PixopsInterpType -> GdkInterpType.
2002-02-08 Federico Mena Quintero <federico@ximian.com>
* pixops/pixops.h: Fix comment; PixopsInterpType -> GdkInterpType.
Owen Taylor [Fri, 8 Feb 2002 19:39:26 +0000 (19:39 +0000)]
Return FALSE if not shoing the titles. (#70959, Thomas Leonard)
Fri Feb 8 14:30:14 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkclist.c (title_focus_in): Return FALSE if
not shoing the titles. (#70959, Thomas Leonard)
Darin Adler [Fri, 8 Feb 2002 19:12:34 +0000 (19:12 +0000)]
isspace -> g_ascii_isspace Remove gdki8n.h include. Remove <ctype.h>
* demos/gtk-demo/main.c: (load_file): isspace -> g_ascii_isspace
* gdk/x11/gdkim-x11.c: Remove gdki8n.h include.
* gdk/x11/gdkkeys-x11.c: Remove <ctype.h> include.
* gdk/x11/gdkmain-x11.c: Remove <ctype.h> include.
* gtk/fnmatch.c: Remove <ctype.h> include.
* gtk/gtkaccelgroup.c: Remove <ctype.h> include.
* gtk/gtkaccellabel.c: (gtk_accel_label_refetch): toupper ->
g_unichar_toupper, toupper -> g_unichar_totile
* gtk/gtkbindings.c: Remove <ctype.h> include.
* gtk/gtkfontsel.c: Remove <ctype.h> include.
* gtk/gtkiconfactory.c: Remove <ctype.h> include.
* gtk/gtkinputdialog.c: Remove <ctype.h> include.
* gtk/gtklabel.c: Remove <ctype.h> include.
* gtk/gtkmain.c: Remove <ctype.h> include.
* gtk/gtkmenu.c: Remove <ctype.h> include.
* gtk/gtkoldeditable.c: Remove <ctype.h> include.
* gtk/gtkrc.c: Remove <ctype.h> include.
* gtk/gtktextbtree.c: Remove <ctype.h> include.
* gtk/gtktextiter.c: Remove <ctype.h> include.
* gtk/gtktextsegment.c: Remove <ctype.h> include.
Darin Adler [Fri, 8 Feb 2002 19:08:20 +0000 (19:08 +0000)]
Wean this from <ctype.h>.
* io-xbm.c: (next_int): Wean this from <ctype.h>.
Sven Neumann [Fri, 8 Feb 2002 17:35:06 +0000 (17:35 +0000)]
gtk/gtkfilesel.c gtk/gtkgamma.c use stock labels for dialog action
2002-02-08 Sven Neumann <sven@gimp.org>
* gtk/gtkfilesel.c
* gtk/gtkgamma.c
* gtk/gtkinputdialog.c: use stock labels for dialog action buttons.
Darin Adler [Fri, 8 Feb 2002 17:13:14 +0000 (17:13 +0000)]
Pass the ref_node and unref_node calls through to the child model.
* gtk/gtktreemodelsort.c: (gtk_tree_model_sort_ref_node),
(gtk_tree_model_sort_unref_node): Pass the ref_node and
unref_node calls through to the child model.
Laszlo Peter [Fri, 8 Feb 2002 16:23:05 +0000 (16:23 +0000)]
s/__FUNCTION__/G_GNUC_FUNCTION/ ditto
2002-02-08 Laszlo Peter <laca@ireland.sun.com>
* gtk/gtktextchild.c: s/__FUNCTION__/G_GNUC_FUNCTION/
* gtk/gtktextview.c: ditto
Yuri Syrota [Fri, 8 Feb 2002 14:56:33 +0000 (14:56 +0000)]
Updated Ukrainian translation
Yuri Syrota [Fri, 8 Feb 2002 13:58:26 +0000 (13:58 +0000)]
Updated Ukrainian translation
Yuri Syrota [Fri, 8 Feb 2002 10:16:14 +0000 (10:16 +0000)]
Updated Ukrainian translation
Owen Taylor [Fri, 8 Feb 2002 03:25:31 +0000 (03:25 +0000)]
clean up a little
Havoc Pennington [Fri, 8 Feb 2002 02:38:44 +0000 (02:38 +0000)]
add change_value virtual function, to fix build
2002-02-07 Havoc Pennington <hp@pobox.com>
* gtk/gtkspinbutton.h (struct _GtkSpinButtonClass): add
change_value virtual function, to fix build
* gtk/gtkpixmap.c (gtk_pixmap_class_init): parent_class was
from GtkWidget not GtkMisc. Not that it ever mattered.
Owen Taylor [Fri, 8 Feb 2002 01:10:25 +0000 (01:10 +0000)]
Add ::move-focus-out signal to handle Control[-Shift]-Tab and
Thu Feb 7 19:52:00 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtknotebook.[ch]: Add ::move-focus-out signal
to handle Control[-Shift]-Tab and Control-arrow
bindings and implement bindings as per #53612.
* gtk/gtktextview.c (gtk_text_view_move_focus): Fix
fetching the toplevel for plug-socket.
* gtk/gtknotebook.c (gtk_notebook_class_init): Remove
bindings for Return/Enter to select the page.
* gtk/gtknotebook.c (gtk_notebook_change_current_page):
Beep at ends.
* gtk/gtknotebook.c (focus_tabs_move): Don't wrap around
and beep at ends.
* gtk/gtknotebook.c (gtk_notebook_focus): When focusing into
the page with the arrow keys, focus the first widget,
not the directionally closest widget.
Owen Taylor [Fri, 8 Feb 2002 00:02:52 +0000 (00:02 +0000)]
Convert to using binding set for doing key bindings. (#62622, Requested by
Thu Feb 7 19:00:10 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkspinbutton.c (gtk_spin_button_key_release): Convert
to using binding set for doing key bindings. (#62622,
Requested by Skip Montaro)
* gtk/gtkwindow.c (gtk_window_class_init): Add control-arrow
bindings as overrides along with control-tab bindings.
* gtk/gtknotebook.c (gtk_notebook_class_init): Fix return
type for ::focus_tab signal.
Kristian Rietveld [Thu, 7 Feb 2002 18:43:59 +0000 (18:43 +0000)]
Fixes #70782 and some drag dest rectangle/line issues
Thu Feb 7 19:39:27 2002 Kristian Rietveld <kris@gtk.org>
Fixes #70782 and some drag dest rectangle/line issues
* gtk/gtktreeview.c (gtk_tree_view_set_model): set
GTK_TREE_VIEW_IS_LIST flag (we can switch from a TreeStore to a
ListStore for example)
(gtk_tree_view_get_path_at_pos): revert previous change, we
shouldn't correct for the header, because we are taking bin_window
coordinates here
(gtk_tree_view_set_drag_dest_row): queue old drag_dest row and
upper/lower neighbors for draw, so the drag dest rectangle/line will
be cleared correctly
(gtk_tree_view_get_dest_row_at_pos): correct for treeview header
here, as drag_y is relative to the widget and _get_path_at_pos wants
coords relative to bin_window, draw black outline rectangle after
drawing the cells
Owen Taylor [Thu, 7 Feb 2002 15:57:32 +0000 (15:57 +0000)]
Use layout text (which may be affected by invisible char) to compute
Thu Feb 7 10:53:12 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkentry.c (gtk_entry_draw_text): Use layout text
(which may be affected by invisible char) to compute
selection bounds, not entry text. (#70733, Alex Larsson)
Padraig O'Briain [Thu, 7 Feb 2002 15:45:17 +0000 (15:45 +0000)]
Change show_help signal to return gboolean instead of void. This allows
* gtk/gtkwidget.[ch]:
Change show_help signal to return gboolean instead of void. This
allows the keypress which invokes the signal to be propagated to the
focus widgets ancestors if not handled by the focus widget.
* gtk/gtktoolips.[ch]
Change _gtk_tooltips_show_tip () to return a gboolean indicating
whether widget has tooltip to display.
Padraig O'Briain [Thu, 7 Feb 2002 09:39:21 +0000 (09:39 +0000)]
Change popup_menu signal to return gboolean instead of void. This allows
* gtk/gtkwidget.[ch]:
Change popup_menu signal to return gboolean instead of void. This
allows the keypress which invokes the signal to be propagated to the
focus widgets ancestors if not handled by the focus widget.
* gtk/gtkcolorsel.c gtk/gtkentry.c gtk/gtktextview.c:
Change signature of popup_menu signal handler to return gboolean
instead of void and return TRUE in the signal handler
Owen Taylor [Thu, 7 Feb 2002 05:43:55 +0000 (05:43 +0000)]
Add gradient rendering -- if the source width/height is zero, render a
Thu Feb 7 00:21:21 2002 Owen Taylor <otaylor@redhat.com>
* pixbuf-render.c (pixbuf_render): Add gradient
rendering -- if the source width/height is zero,
render a gradient from the surrounding values.
Anders Carlsson [Thu, 7 Feb 2002 04:06:16 +0000 (04:06 +0000)]
Free the setting name.
2002-02-07 Anders Carlsson <andersca@gnu.org>
* gdk/x11/xsettings-common.c (xsettings_setting_free): Free
the setting name.
Changwoo Ryu [Thu, 7 Feb 2002 02:03:27 +0000 (02:03 +0000)]
Updated Korean translation
Kristian Rietveld [Wed, 6 Feb 2002 22:37:04 +0000 (22:37 +0000)]
Fixes #70708
Wed Feb 6 23:28:39 2002 Kristian Rietveld <kris@gtk.org>
Fixes #70708
* gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): we're dealing
with widget coordinates here, so take the header height into
account while converting
(gtk_tree_view_widget_to_tree_coords): take header height into
account
(gtk_tree_view_tree_to_widget_coords): ditto
(gtk_tree_view_get_dest_row_at_pos): we were passing coords
relative to the tree with _get_path_at_pos, while that function
wants coords relative to the widget
Havoc Pennington [Wed, 6 Feb 2002 22:22:37 +0000 (22:22 +0000)]
remove unused variable (gtk_text_view_get_window): add warning about how
2002-02-06 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (gtk_text_view_scroll_hpages): remove unused variable
(gtk_text_view_get_window): add warning about how you
can't get the private window. #70683, and avoid default: in the
switch so we get "enum value unhandled" warnings
Havoc Pennington [Wed, 6 Feb 2002 22:07:47 +0000 (22:07 +0000)]
Add warnings if you try to use a child anchor that isn't inside a buffer.
2002-02-06 Havoc Pennington <hp@redhat.com>
* gtk/gtktextchild.c: Add warnings if you try to use a child
anchor that isn't inside a buffer. Really kind of lame;
we should separate the anchor from the buffer. But not worth
fixing for now. #70601
Kristian Rietveld [Wed, 6 Feb 2002 17:24:28 +0000 (17:24 +0000)]
rip out all the debugging ifdefs, as modelsort seems to be stable (and
Wed Feb 6 18:25:24 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreemodelsort.c: rip out all the debugging ifdefs, as
modelsort seems to be stable (and nobody complained :)
Owen Taylor [Wed, 6 Feb 2002 00:41:07 +0000 (00:41 +0000)]
Keep the length of the anti-expose queue finite, by if it gets too long,
Tue Feb 5 19:13:42 2002 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkgeometry-x11.c (gdk_window_queue): Keep
the length of the anti-expose queue finite, by if
it gets too long, first doing a XSync() and checking
the event queue, and if that doesn't work, simply
discarding all anti-expose items in the queue.
* gdk/x11/gdkdnd-x11.c (gdk_window_cache_filter): Fix ordering
on ConfigureNotify (#56349, Thomas Leonard)
Havoc Pennington [Tue, 5 Feb 2002 23:07:07 +0000 (23:07 +0000)]
offset area being gotten from pixmap by the align/padding offsets, so we
2002-02-05 Havoc Pennington <hp@redhat.com>
* gtk/gtkimage.c (gtk_image_expose): offset area being gotten from
pixmap by the align/padding offsets, so we don't get warnings
in gdk_pixbuf_get_from_drawable (and so it works, of course)
Matthias Clasen [Tue, 5 Feb 2002 22:50:31 +0000 (22:50 +0000)]
Remove a (now) misleading comment.
* gtk/gtkrc.c (gtk_rc_parse_file): Remove a (now) misleading comment.
* gtk/tmpl/gtkrc.sgml: Update the description of RC file loading
to match recent code changes. Also document font_name and engine.
Federico Mena Quintero [Tue, 5 Feb 2002 22:06:33 +0000 (22:06 +0000)]
Do not #include <gdk/gdkwindow.h>.
2002-02-05 Federico Mena Quintero <federico@ximian.com>
* gdk/gdkwindow.h: Do not #include <gdk/gdkwindow.h>.
Kristian Rietveld [Tue, 5 Feb 2002 21:53:51 +0000 (21:53 +0000)]
let's set the path, which we're going to pass with the emission of
Tue Feb 5 22:54:16 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtkliststore.c (gtk_list_store_insert_after): let's set the
path, which we're going to pass with the emission of row_inserted, to
the iter we inserted and not its sibling.
Owen Taylor [Tue, 5 Feb 2002 20:55:35 +0000 (20:55 +0000)]
Remove the objectionably short cursor blink time setting.
Sat Feb 2 17:43:00 2002 Owen Taylor <otaylor@redhat.com>
* tests/testgtkrc: Remove the objectionably short cursor blink
time setting.
Jonathan Blandford [Mon, 4 Feb 2002 19:30:00 +0000 (19:30 +0000)]
update a little
Padraig O'Briain [Mon, 4 Feb 2002 17:46:33 +0000 (17:46 +0000)]
Fix leak of GdkEvent (#70519)
* gtk/gtkmenu.c (gtk_menu_popup):
Fix leak of GdkEvent (#70519)
Owen Taylor [Mon, 4 Feb 2002 15:43:09 +0000 (15:43 +0000)]
Fix from Matthias Clasen to clear background appropriately for theme by
Mon Feb 4 10:40:28 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkstyle.c (gtk_default_draw_resize_grip):
Fix from Matthias Clasen to clear background appropriately
for theme by calling gtk_style_apply_default_background().
(#70449)
Owen Taylor [Mon, 4 Feb 2002 15:13:26 +0000 (15:13 +0000)]
on Feb 4 10:06:49 2002 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkevents-x11.c: gtk-double-click-time,
not gtk-double-click-timeout. (#70501)
Stanislav Visnovsky [Mon, 4 Feb 2002 11:37:05 +0000 (11:37 +0000)]
Updated Slovak translation.
2002-02-04 Stanislav Visnovsky <visnovsky@nenya.ms.mff.cuni.cz>
* sk.po: Updated Slovak translation.
Havoc Pennington [Mon, 4 Feb 2002 06:08:28 +0000 (06:08 +0000)]
rename "signal" arg to "name" to avoid compiler warnings about shadowing
2002-02-04 Havoc Pennington <hp@pobox.com>
* gtk/gtksignal.c (gtk_signal_connect_while_alive):
(gtk_signal_connect_object_while_alive): rename
"signal" arg to "name" to avoid compiler warnings
about shadowing signal(). #70453
Anders Carlsson [Sun, 3 Feb 2002 21:18:44 +0000 (21:18 +0000)]
Add flipping support to the expanders.
2002-02-03 Anders Carlsson <expander-master@gtk.org>
* gtk/gtkstyle.c (gtk_default_draw_expander): Add
flipping support to the expanders.
Hasbullah Bin Pit [Sun, 3 Feb 2002 03:22:32 +0000 (03:22 +0000)]
Updated Malay Translation.
2002-02-03 Hasbullah Bin Pit <sebol@ikhlas.com>
* ms.po: Updated Malay Translation.
Owen Taylor [Sun, 3 Feb 2002 03:02:07 +0000 (03:02 +0000)]
RC file lookup improvements (#68234, suggestions from Matthias Clasen.)
Sat Feb 2 21:54:01 2002 Owen Taylor <otaylor@redhat.com>
RC file lookup improvements (#68234, suggestions
from Matthias Clasen.)
* gtk/gtkrc.c (gtk_rc_parse_file): Look for the
locale suffix variants (gtkrc.en_US, gtkrc.en) for
all RC files we parse, not just the default RC
files.
* gtk/gtkrc.c (gtk_rc_parse_default_files): Remove
support for charset specific RC files.
Owen Taylor [Sun, 3 Feb 2002 01:25:32 +0000 (01:25 +0000)]
Non-exported _gtk_menu_select_first() function that selects the first item
Sat Feb 2 20:16:04 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmenushell.c (_gtk_menu_shell_select_first):
Non-exported _gtk_menu_select_first() function that
selects the first item of the menu in a standard
way. (Skipping tearoffs.)
* gtk/gtkmenushell.c gtk/gtkentry.c gtk/gtktextview.c
gtkmenuitem.c: Use _gtk_menu_shell_select_first().
* gtk/gtkmenuitem.c (gtk_real_menu_item_select): Remember
if we are starting the timeout from a keypress so
we can set menushell->ignore_enter properly.
* gtk/gtknotebook.c (focus_child_in): Return something
meaningful if there are no children.
* gtk/gtkmenu.c (gtk_menu_key_press): Fix precendence
problem.
Owen Taylor [Sun, 3 Feb 2002 00:18:41 +0000 (00:18 +0000)]
Fix some bugs in the determination of xgrab_shell.
Sat Feb 2 19:15:42 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmenu.c (gtk_menu_popup): Fix some bugs in
the determination of xgrab_shell.
Owen Taylor [Sat, 2 Feb 2002 22:52:22 +0000 (22:52 +0000)]
Add a GtkSetting (gtk-entry-select-on-focus) controlling whether the
Sat Feb 2 17:43:00 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkentry.c (gtk_entry_grab_focus): Add a GtkSetting
(gtk-entry-select-on-focus) controlling whether the
contents of an entry are selected on focus in.
* gtk/gtkmenu.c (gtk_menu_key_press): Add a GtkSetting
(gtk-can-change-accels) controlling whether accelerators can be
changed on the fly or not. (#51902)
* gtk/gtkmenu.c (gtk_menu_key_press): Allow unmodified
accelerators, now that accelerator changing can be turned
off for those who won't expect it. (#61285)
* gtk/gtkaccelgroup.c (gtk_accelerator_valid): Allow
Backspace/Delete/KP_Delete as valid accelerators.
* gtk/gtkmenu.c (gtk_menu_key_press): Allow setting of
Delete/Backspace as accelerators by making them toggle
the menu item between empty and the pressed key.
(#58605)
* tests/testgtkrc: Remove the objectionably short cursor blink
time setting.
Owen Taylor [Sat, 2 Feb 2002 21:50:46 +0000 (21:50 +0000)]
To get around the fact that we may have a owner_events = FALSE grab in
Sat Feb 2 16:43:31 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmenu.c (gtk_menu_popup): To get around the fact
that we may have a owner_events = FALSE grab in effect
when we pop up a window, make a temporary grab on a
different window, then grab on the real window. Fixes
a problem where if a context menu popped up under the
cursor, the first item would be stuck unselected.
(#59812, reported by Arnaud Charlet.)
Peter Williams [Sat, 2 Feb 2002 20:12:53 +0000 (20:12 +0000)]
Install gtkrc.default from $(srcdir) for when $(builddir) is different.
2002-02-02 Peter Williams <peterw@ximian.com>
* gtk/Makefile.am (install-data-local): Install gtkrc.default
from $(srcdir) for when $(builddir) is different.
Kristian Rietveld [Sat, 2 Feb 2002 17:58:07 +0000 (17:58 +0000)]
remove TESTGTK_RCFILE define
Sat Feb 2 19:00:39 2002 Kristian Rietveld <kris@gtk.org>
* gtk/Makefile.am: remove TESTGTK_RCFILE define
Owen Taylor [Sat, 2 Feb 2002 17:52:01 +0000 (17:52 +0000)]
Remove the "select first item if popped up from keypress" hack -- was
Sat Feb 2 11:37:21 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmenu.c (gtk_menu_popup): Remove the
"select first item if popped up from keypress" hack --
was causing more problems than it was worth
(#53191, #68483)
* gtk/gtktextview.c (popup_targets_received):
gtk/gtkentry.c (popup_targets_received): If activated
from keyboard, select first item of popup menu.
Kristian Rietveld [Sat, 2 Feb 2002 17:07:49 +0000 (17:07 +0000)]
set upper member of vadjustment correct, so the vscrollbars of lists
Sat Feb 2 18:07:51 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_size_allocate): set upper member
of vadjustment correct, so the vscrollbars of lists smaller than
1 page are somewhat saner (#66905)
* gtk/gtkliststore.c (gtk_list_store_remove_silently): do not
increment the stamp, liststore is a model with persisting iters
Owen Taylor [Sat, 2 Feb 2002 16:37:23 +0000 (16:37 +0000)]
Support engine "" {} to mean override to the default engine. (#70205)
Fri Feb 1 23:54:00 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkrc.[ch] (gtk_rc_parse_engine): Support
engine "" {} to mean override to the default
engine. (#70205)
Ole Laursen [Sat, 2 Feb 2002 15:44:15 +0000 (15:44 +0000)]
Updated Danish translation.
2002-02-02 Ole Laursen <olau@hardworking.dk>
* da.po: Updated Danish translation.
Owen Taylor [Sat, 2 Feb 2002 04:34:09 +0000 (04:34 +0000)]
Parse the RC string here when the first object is created rather than in
Fri Feb 1 23:25:33 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtktooltips.c (gtk_tooltips_init): Parse the
RC string here when the first object is created
rather than in the class_init to not break doc
building. (#70341, Havoc Pennington.)
* gtk/gtkrc.c (parse_include_file): Use the directories
for the currently parsed files as the starting point
to look for include files. (#59975)
Manish Singh [Sat, 2 Feb 2002 04:26:48 +0000 (04:26 +0000)]
use gtk_label_new_with_mnemonic for labels that actually have mnemonics
Fri Feb 1 20:21:56 2002 Manish Singh <yosh@gimp.org>
* gtk/gtkinputdialog.c: use gtk_label_new_with_mnemonic for labels
that actually have mnemonics
Owen Taylor [Sat, 2 Feb 2002 01:00:42 +0000 (01:00 +0000)]
Fix use of ! in shell.
Fri Feb 1 19:57:59 2002 Owen Taylor <otaylor@redhat.com>
* configure.in: Fix use of ! in shell.
* gtk/gtktooltips.c (gtk_tooltips_class_init) gtkrc.default:
Move the setting of default tooltips colors to gtktooltips.c
from gtkrc.default. (Use default priority so themes will
override.) (#58542)
Owen Taylor [Sat, 2 Feb 2002 00:44:52 +0000 (00:44 +0000)]
Fix ordering of priorities so that priorities take precendence over the
Fri Feb 1 17:48:51 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkrc.c (gtk_rc_get_style): Fix ordering of
priorities so that priorities take precendence over
the ordering by type. (#70205)
* test/testgtkrc tests/testgtk.c (create_rc_file): Add
some labels to test priorities in testgtkrc.
Matthias Clasen [Fri, 1 Feb 2002 23:59:52 +0000 (23:59 +0000)]
Build the tga loader as a static library. (#70157)
* Makefile.am: Build the tga loader as a static library. (#70157)
Matthias Clasen [Fri, 1 Feb 2002 23:43:07 +0000 (23:43 +0000)]
Merge 16- and 32-bit ico support from the stable branch. (#61179)
* io-ico.c: Merge 16- and 32-bit ico support from the stable
branch. (#61179)
* io-gif.c: Recomposite all images if the animation size changes
while loading. (#70055)
* gdk-pixbuf.c (gdk-pixbuf-fill): Make it work for subpixbufs.
(#70055)
Kristian Rietveld [Fri, 1 Feb 2002 23:36:10 +0000 (23:36 +0000)]
use y coordinate relative to the tree and not the treeview window (fixes
Fri Feb 1 00:37:49 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): use
y coordinate relative to the tree and not the treeview window
(fixes the PgDn/PgUp brokenness)